// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axiosInit from './services/index.js'//axios请求(全局默认设置)
import _mapping from './utils/_mapping'
import './sass/element-variables.scss'
import './assets/iconfont/iconfont.css'
import './sass/theme-reset.scss'
import './sass/common.scss'
import store from './store'
import VueClipboard from 'vue-clipboard2'

import {
  Select,
  Option,
  Button,
  Table,
  Input,
  Container,
  Aside,
  Menu,
  Submenu,
  MenuItem,
  MenuItemGroup,
  Tabs,
  TabPane,
  Message,
  MessageBox,
  Upload,
  TableColumn,
  Pagination,
  Popover,
  Dialog,
  Row,
  Col,
  DatePicker,
  TimeSelect,
  Loading,
  Autocomplete,
  Switch,
  Form,
  FormItem,
  Checkbox
} from 'element-ui'

Vue.use(TimeSelect)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Option)
Vue.use(Select)
Vue.use(DatePicker)
Vue.use(Button)
Vue.use(Table)
Vue.use(Input)
Vue.use(Container)
Vue.use(Aside)
Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItem)
Vue.use(MenuItemGroup)
Vue.use(Tabs)
Vue.use(TabPane)
Vue.use(Upload)
Vue.use(TableColumn)
Vue.use(Pagination)
Vue.use(Popover)
Vue.use(Dialog)
Vue.use(Row)
Vue.use(Col)
Vue.use(Loading)
Vue.use(Autocomplete)
Vue.use(Switch)
Vue.use(Checkbox)
Vue.use(VueClipboard)//复制到粘贴板功能

Vue.config.productionTip = false
Vue.prototype.$msgbox = MessageBox   // 弹出框
Vue.prototype.$msg = Message         // 提示信息
Vue.prototype._mapping = _mapping

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
